package com.woniu.gf.pawn.comm.core.util;


import java.util.Random;

/**
 * @BelongsProject: gf-pawn-system
 * @BelongsPackage: com.woniu.gf.pawn.comm.core.util
 * @Author: wu wei
 * @CreateTime: 2020-10-11 18:58
 * @Description: 验证码工具类
 */
public class CodeUtil {
    public static String getCode(){
        String code="";
        Random random = new Random();
        for(int i=0;i<6;i++){
            code+= random.nextInt(10);
        }
        return code;
    }
}
